-
Notifications
You must be signed in to change notification settings - Fork 258
add desktop file and install it with unison-gui #1128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
@gdt - i believe the original author of the .desktop file is @mkrupcale because it's the same user name in the Fedora commit For me any license that's acceptable to upstream is fine, i've added the MIT-0 license based on https://docs.fedoraproject.org/en-US/legal/misc/#_license_of_fedora_spec_files ... @mkrupcale please tell us if you have anything more specific in mind! |
|
Thanks for splitting. I see the MIT-0 SPDX and given that this is near trivial in creative expression that seems adequate. Thanks also for pinging the likely author. I did a build/install to a temp DESTDIR and structurally it seems good. I wondered why in Two nits, and I can adjust, or you: I don't want to encode github in the desktop name. It's a bug that unison is still on github. Looking at my system (NetBSD/pkgsrc), I have 82 desktop files. Using the horrifying regexp The comment says (I am assuming that packaging systems would be happier to have an upstream-provided desktop file, and drop their local one, seeing that as progress, even if it is a bit different.) |
|
Flathub has a very detailed and inflexible policy about Application ID which also determines the desktop file name, so i had to follow that. https://docs.flathub.org/docs/for-app-authors/requirements#application-id https://docs.flatpak.org/en/latest/conventions.html#desktop-files changing this from io.github.* effectively requires deprecating the existing application and submitting it under the new ID - certainly doable but only after you have actually established the new hosting location. however, replacing the last part with "unison-gui" is possible:
|
Thanks for pinging me on this effort, as I did indeed write the
Given all of this, yes, MIT-0, is probably the appropriate license for the
The wording
Yes, I'd prefer upstream to ship the References
|
| GenericName=File Synchronizer | ||
| Comment=GUI for Unison file synchronizer | ||
| Terminal=false | ||
| Icon=io.github.bcpierce00.unison |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Must the .desktop Icon entry also contain the Flatpak application ID? And does Flatpak then rename the icon files during install / Flatpak creation (e.g. U.svg [1] to io.github.bcpierce00.unison.svg)?
For the Fedora package, I rename U.svg to unison.svg and use Icon=unison [2,3], consistent with the Icon Theme Specification [4].
- https://github.com/bcpierce00/unison/blob/master/icons/U.svg
- https://docs.fedoraproject.org/en-US/packaging-guidelines/#_icon_tag_in_desktop_files
- https://specifications.freedesktop.org/desktop-entry-spec/latest/extra-actions.html#id-1.12.4.3
- https://specifications.freedesktop.org/icon-theme-spec/latest/#icon_lookup
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it's renamed to / installed as io.github.bcpierce00.unison.svg and that is very easy to do.
|
I have been operating under the assumption that we are discussing adding a desktop file that is 1) aligned with unison upstream (because everything in the repo is) and 2) generally useful for all systems that use desktop files (because portability is important). I have not previously recognized flatpak as a naming authority for how unison calls itself, and I'm not inclined to do so, especially when they used a name that I would have immediately objected to had I been asked. I guess the questions are:
I'm going to ask about the big picture on unison-hackers@. |
|
I started to look at the link (thanks @mkrupcale for the references), but I don't like flathub's terms, so I stopped. |
I would agree with this sentiment. I think the Flatpak build / creation process should adjust the name as required rather than having upstream use the Flatpak-required name since Flatpak is obviously not the only (or perhaps even primary) means of distribution.
I would say
Agreed, hence why I rename it during install.
I think the current naming in the source repo is mostly fine and makes sense, but the package distribution install process does have to adjust the naming to be compliant with the system icon specification. If we do agree that
I'm fine with either the manual install during package build or if unison wishes to do the icon install as part of |
|
Thanks. I did try to look at the icon theme spec but it was too much to absorb quickly. Square makes sense. I take away:
|
Yeah, that would work fine. BTW the On the question of naming [1] https://specifications.freedesktop.org/desktop-entry-spec/latest/file-naming.html |
|
As for intent, I view unison as primarliy a CUi program and it can run as a daemon. So the GUI is a special case, and e.g. syncthing has a desktop entry to start it in the background as a daemon, and then another to run the gui. Hence I lean to make all unison-foo now, to avoid wanting to change. Thanks for the png/etc hint. I did realize that but it's not safe to assume :-) I get the point of reverse dns as a unique source, but unison simply doesn't have such a name, and isn't likely to get one. |
It might make more sense to launch a |
|
Those are all good points. I don't mean to figure out how this would work, and there will be a lot of issues. Only that "there will never be anything else" is unsupportable. |
|
I reviewed this again before the release, and my assessment is that a number of issues raised in discussion are not resolved:
Thus today this PR, as it stands, is not mergeable. I added feedback, not as the meaning in issues of request for information, but in the PR sense of waiting for changes. |
|
i completely agree with your assessment, and in any case it's not urgent... my memory of the comments here is that there would be some discussion on a mailing list (but no links to any results of the discussion), and there are some unresolved questions:
|
|
I realize desktop is gui-ish but there is also the notion of running unison as a daemon without the gui. Looking at my system's collection of files, the vast majority are for programs that are only GUI. I see syncthing, which has but of course there are text UIs so I think I land on I see your point about Icons being separable, but I don't see how we can install a desktop file that points to an icon that isn't installed. We have a bunch of icons in the sources, and it's a little messy. I would prefer that some grasp/add-README/rationalize that and figure out which icons perhaps should be installed to align with how the broader Free Software world does things. I think that's putting a few different resolution in share/icons/hicolor. I lean to using our existing icons if that's at all reasonable, and maybe deprecating the one that is natively in Adobe Illustrator because we shouldn't use non-Free tools. I think the svg ones were created because of that reason. |
|
See #1163 |
|
Merging this PR closes #162 |
Originally based on the Fedora rpm source. Also install icons referenced in the desktop file.
11393fc to
f35aa87
Compare
Taken from the Flatpak repo
https://github.com/flathub/io.github.bcpierce00.unison and originally based on the Fedora rpm source.